package com.bbs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;

import java.time.LocalDateTime;

@Data
@TableName("post")
public class Post {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String title;
    
    private String content;
    
    private Long authorId;
    
    private Integer viewCount;  // 浏览数（用于排行榜）
    
    private LocalDateTime createdAt;
    
    private LocalDateTime updatedAt;

    //点赞数量TODO后续新增的功能未补齐
    private Long likeNum;
}